﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="scheduler_mySch_list.aspx.cs" Inherits="Ccit.OA.Scheduler.scheduler_mySch_list" %>
<%@ Register TagPrefix="ccit" Namespace="Ccit.ServerControls" Assembly="Ccit.ServerControls.ActionForm" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>我的日程-> 个人日程</title>
    <script language="javascript" type="text/javascript" src="../script/jquery.js"></script>
    <script language="javascript" type="text/javascript" src="../script/StringClass_Ext.js"></script>
    <script language="javascript" type="text/javascript" src="../script/jsonlib.js"></script>
    <script language="javascript" src="../script/jwindow.js" type="text/javascript"></script>
    <script language="javascript" src="../script/jcontrol.js" type="text/javascript"></script>
    <script language="javascript" src="../script/jbase64.js" type="text/javascript"></script>
    <script language="javascript">
        
        function doDel()
        {
           if(document.getElementById("hidVar").value == "")
           {
                alert('请先选择要删除的日程！');    
                return false;
           }
           else
           {
                if(confirm("确定删除已选定的日程?"))
                {
                    return true;
                }
            }
            return false;
        }
        
        function doFul()
        {
           if(document.getElementById("hidVar").value == "")
           {
                alert('请先选择要置为完成状态的日程！');    
                return false;
           }
            return true;
        }  
        
                
        function doOptions(strId)
        {
            var sListID= new Array(); //定义一数组
            sListID = document.getElementById("hidvar").value.split(",");
            for(var i=0;i<sListID.length;i++)
            {
                if(sListID[i] == strId)
                {
                    document.getElementById("hidvar").value = document.getElementById("hidvar").value.replace(","+strId,"");
                   break;
                }
                if(i == sListID.length - 1)
                {
                     document.getElementById("hidvar").value +=","  + strId;
                }
                
            }
        }
        
        function doAdd()
        {
            parent.frames.location.href = "scheduler_mySch_edit.aspx";
            return false;
        }
        
        function doedit(encodeparam)
        {
            parent.frames.location.href = "scheduler_mySch_edit.aspx?" + encodeparam ;
        }
    </script>


</head>
<body>
    <ccit:ActionForm id="form1" runat="server">

     <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
    </asp:ScriptManager>
     <table width="100%" background="../images/toolbar/bg_toolbar.gif" border="0" align="center" cellpadding="0" cellspacing="0">
				<tr>
					
					<td width="100%"  style="FONT-WEIGHT:normal;FONT-SIZE:10pt;LINE-HEIGHT:normal;FONT-STYLE:normal;FONT-VARIANT:normal"><b>
							<asp:ImageButton id="ImgBack" runat="server" AlternateText="后退" 
                            ImageUrl="../images/left.gif" onclick="ImgBack_Click"> </asp:ImageButton>
							&nbsp;<asp:Label Runat="server" ID="lblDate"></asp:Label>
							&nbsp;<asp:ImageButton id="ImgForward" runat="server" AlternateText="前进" 
                            ImageUrl="../images/right.gif" onclick="ImgForward_Click" style="width: 16px"> </asp:ImageButton>
						</b>
					</td>
					<!--
					<td align="right">
				    <div class="tbSeparator" runat="server"></div>
				    </td>
				    -->
					<td align="right"><nobr>
					<asp:LinkButton CssClass="linktext" ID="lnbAdd" Runat="server">新增</asp:LinkButton>&nbsp;
					<asp:LinkButton CssClass="linktext" ID="lnbFul" OnClick="lnbFul_Click" runat="server" ToolTip="批量置为完成标志功能">完成</asp:LinkButton>&nbsp;
					<asp:LinkButton CssClass="linktext" ID="lnbDel" runat="server" 
                            onclick="lnbDel_Click">删除</asp:LinkButton>
					&nbsp;<asp:LinkButton CssClass="linktext" ID="lnbDay" Runat="server" 
                            onclick="lnbDay_Click">按日</asp:LinkButton>
					&nbsp;<asp:LinkButton CssClass="linktext" ID="lnbWordWeek" Runat="server" 
                            onclick="lnbWordWeek_Click">按工作周</asp:LinkButton>
					&nbsp;<asp:LinkButton CssClass="linktext" ID="lnbWeek" Runat="server" 
                            onclick="lnbWeek_Click">按周</asp:LinkButton>
					&nbsp;<asp:LinkButton CssClass="linktext" ID="lnbMonth" Runat="server" 
                            onclick="lnbMonth_Click">按月</asp:LinkButton>
					&nbsp;<asp:LinkButton CssClass="linktext" ID="LinkButton1" Runat="server" Visible="false">按时间表</asp:LinkButton></nobr>
					</td>
				</tr>
			</table>
			<table style="display:none" height="24" class="tableborder" cellSpacing="0" cellPadding="0" width="100%" align="center"
				background="../images/toolbar/bg_toolbar.gif" border="0">
				<tr bgcolor="#EEEAEB">
					<td width="50%" align="center" style="FONT-WEIGHT:normal;FONT-SIZE:10pt;LINE-HEIGHT:normal;FONT-STYLE:normal;FONT-VARIANT:normal"><b>
							<asp:Label ForeColor="Blue" Runat="server" ID="lblDate2"></asp:Label>
						</b>
					</td>
				</tr>
			</table>
            <TABLE class="tableborder" id="Table1" height="90%" cellSpacing="0" cellPadding="0" width="100%"
				align="center" border="0" runat="server">
				<TR>
					<td vAlign="top">
					

						<!---------------按日显示begin--------------->
						<TABLE id="tblMain" cellSpacing="0" cellPadding="0" width="100%" border="0" Runat="server">
						</TABLE>
						<!---------------按日显示begin---------------></td>
				</TR>
			</TABLE>
            <input type="hidden" id="hidDate" runat="server" />
            <input type="hidden" id="hidType" runat="server" />
            <input type="hidden" id="hidVar" runat="server" />
    </ccit:ActionForm>
</body>
</html>
